package _3._137._168._180.ormrpc.services.WSExpenseControlFacade;

public class WSExpenseControlFacadeSrvProxyProxy implements _3._137._168._180.ormrpc.services.WSExpenseControlFacade.WSExpenseControlFacadeSrvProxy {
  private String _endpoint = null;
  private _3._137._168._180.ormrpc.services.WSExpenseControlFacade.WSExpenseControlFacadeSrvProxy wSExpenseControlFacadeSrvProxy = null;
  
  public WSExpenseControlFacadeSrvProxyProxy() {
    _initWSExpenseControlFacadeSrvProxyProxy();
  }
  
  public WSExpenseControlFacadeSrvProxyProxy(String endpoint) {
    _endpoint = endpoint;
    _initWSExpenseControlFacadeSrvProxyProxy();
  }
  
  private void _initWSExpenseControlFacadeSrvProxyProxy() {
    try {
      wSExpenseControlFacadeSrvProxy = (new _3._137._168._180.ormrpc.services.WSExpenseControlFacade.WSExpenseControlFacadeSrvProxyServiceLocator()).getWSExpenseControlFacade();
      if (wSExpenseControlFacadeSrvProxy != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)wSExpenseControlFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)wSExpenseControlFacadeSrvProxy)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (wSExpenseControlFacadeSrvProxy != null)
      ((javax.xml.rpc.Stub)wSExpenseControlFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public _3._137._168._180.ormrpc.services.WSExpenseControlFacade.WSExpenseControlFacadeSrvProxy getWSExpenseControlFacadeSrvProxy() {
    if (wSExpenseControlFacadeSrvProxy == null)
      _initWSExpenseControlFacadeSrvProxyProxy();
    return wSExpenseControlFacadeSrvProxy;
  }
  
  public java.lang.String payBillCreate(java.lang.String payBillInfo) throws java.rmi.RemoteException, expensecontrolfacade.client.WSInvokeException{
    if (wSExpenseControlFacadeSrvProxy == null)
      _initWSExpenseControlFacadeSrvProxyProxy();
    return wSExpenseControlFacadeSrvProxy.payBillCreate(payBillInfo);
  }
  
  public java.lang.String getProjectBudget(java.lang.String costCenter, java.lang.String project, java.lang.String period) throws java.rmi.RemoteException, expensecontrolfacade.client.WSInvokeException{
    if (wSExpenseControlFacadeSrvProxy == null)
      _initWSExpenseControlFacadeSrvProxyProxy();
    return wSExpenseControlFacadeSrvProxy.getProjectBudget(costCenter, project, period);
  }
  
  public java.lang.String expenseType() throws java.rmi.RemoteException, expensecontrolfacade.client.WSInvokeException{
    if (wSExpenseControlFacadeSrvProxy == null)
      _initWSExpenseControlFacadeSrvProxyProxy();
    return wSExpenseControlFacadeSrvProxy.expenseType();
  }
  
  public java.lang.String getBudget(java.lang.String costCenter, java.lang.String expenseType, java.lang.String period) throws java.rmi.RemoteException, expensecontrolfacade.client.WSInvokeException{
    if (wSExpenseControlFacadeSrvProxy == null)
      _initWSExpenseControlFacadeSrvProxyProxy();
    return wSExpenseControlFacadeSrvProxy.getBudget(costCenter, expenseType, period);
  }
  
  public java.lang.String normalExpenseCreate(java.lang.String normalExpenseBillInfo) throws java.rmi.RemoteException, expensecontrolfacade.client.WSInvokeException{
    if (wSExpenseControlFacadeSrvProxy == null)
      _initWSExpenseControlFacadeSrvProxyProxy();
    return wSExpenseControlFacadeSrvProxy.normalExpenseCreate(normalExpenseBillInfo);
  }
  
  
}